package com.xh.demo.service.impl;

import com.xh.demo.service.LoginService;

/**
 * @Name LoginServiceImpl
 * @Description
 * @Author wen
 * @Date 2020-04-01
 */
public class LoginServiceImpl implements LoginService {

    @Override
    public String login(String username, String password) {
        if("yyg".equalsIgnoreCase(username)){
            if("123456".equalsIgnoreCase(password)){
                return "欢迎:" + username + "登录成功！！！";
            }
        }
        return "用户名或者密码错误！！！";
    }

}
